package services

import "Sales_system/Dao"

func Getallorders() (error,[]Dao.Orders, int64){
	err, ordersData, total := Dao.Getallorders()
	return err, ordersData, total
}

func Deleteorders(id string) error {
	err := Dao.Deleteorder(id)
	return err
}

func Updateorders(order Dao.Orders) error  {
	err := Dao.Updateorder(order)
	return err
}

func Addorders(order Dao.Orders) error {
	err := Dao.Addorder(order)
	return err
}